$(function(){
    console.log(1);
    $("tbody").on("click", function (e) {
        const $target=$(e.target)
        let $tr = $target.parent().parent()
        if ($target.is(".btn-del")){
            console.log(1)
            const id = $tr.attr("data-id")
            $.get("./api/shop/dele.php", {
               id
            },resp => {
                var resp=JSON.parse(resp)
                if (resp.code == 200) {
                    
                    setTimeout(() => {
                        getDate()
                    },20)
                    
                } 
            })
        }
   

    })
})